package com.cuicuisha.gxyp.manager.mapper;

import com.cuicuisha.gxyp.model.entity.system.SysMenu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName: SysMenuMapper
 * Description:
 *
 * @Author 脆脆鲨
 * @Create 2024-09-14 10:54
 * @Version 1.0
 */
@Mapper
public interface SysMenuMapper {
    List<SysMenu> selectAll();

    void insert(SysMenu sysMenu);

    void updateById(SysMenu sysMenu);

    int countByParentId(Long id);
    void deleteById(Long id);

    List<SysMenu> selectMenuListByUserId(Long userId);

    SysMenu selectById(Long parentId);
}
